package client1;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@EnableEurekaClient
@SpringBootApplication
@RestController
@EnableFeignClients
public class EurakaClientApp1 {


    public static void main(String[] args) {
        SpringApplication.run(EurakaClientApp1.class, args);
    }


    @RequestMapping(value = "/hello", method = RequestMethod.GET)
    public String hello()
    {
        return "euraka client 1 hello";
    }

}
